package com.epro.standard.frontend.tagext;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;

public class BetweenTag extends TagSupport {
    private String dataType = "";
    private String format = "";
    private String unsigned = "";
    private String label = "";
    private String name1 = "";
    private String name2 = "";
    private String styleClass = "";
    private String styleS = "";
    private String labelWidth = "";
    private String alignLabel = "";
    private String width = "";
    private String height = "";

    public void setWidth(String width) {
        this.width = width;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public void setStyleClass(String styleClass) {
        this.styleClass = styleClass;
    }

    public void setStyleS(String styleS) {
        this.styleS = styleS;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public void setUnsigned(String unsigned) {
        this.unsigned = unsigned;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public void setName1(String name1) {
        this.name1 = name1;
    }

    public void setName2(String name2) {
        this.name2 = name2;
    }

    public void setLabelWidth(String labelWidth) {
        this.labelWidth = labelWidth;
    }

    public void setAlignLabel(String alignLabel) {
        this.alignLabel = alignLabel;
    }

    public int doStartTag() throws JspException {
        String str = "";
        try {
            JspWriter out = pageContext.getOut();

            str += "<epro:between ";
            if (!(dataType.equals("")))
                str += " dataType='" + dataType + "'";
            if (!(format.equals("")))
                str += " format='" + format + "'";
            if (!(unsigned.equals("")))
                str += " unsigned='" + unsigned + "'";
            if (!(label.equals("")))
                str += " label='" + label + "'";

            if (!width.equals(""))
                str += " width='" + width + "'";
            if (!(height.equals("")))
                str += " height='" + height + "'";

            if (!(styleClass.equals("")))
                str += " styleClass=\"" + styleClass + "\"";
            if (!(styleS.equals("")))
                str += " styleS=\"" + styleS + "\"";

            if (!(alignLabel.equals("")))
                str += " alignLabel='" + alignLabel + "'";
            if (!(labelWidth.equals("")))
                str += " labelWidth='" + labelWidth + "'";

            if (!(name1.equals("")))
                str += " name1='" + name1 + "'";
            if (!(name2.equals("")))
                str += " name2='" + name2 + "'";

            str += "/>\n";

            out.println(str);

        } catch (java.io.IOException ioe) {
            ioe.printStackTrace();
        }
        return SKIP_BODY;
    }

}

